import React from 'react'
import {InputItem } from 'antd-mobile';

export default class BasicInputExample extends React.Component {
  componentDidMount() {
    // this.autoFocusInst.focus();
  }
  handleClick = () => {
    this.inputRef.focus();
  }
  render() {
    const { getFieldProps } = this.props.form;
    return (
      <div>
          <InputItem
            {...getFieldProps('phone')}
            type="phone"
            placeholder="请输入电话号码"
            style={{color:'#999999'}}
          >手机号码</InputItem>
          <InputItem
            {...getFieldProps('password')}
            type="password"
            placeholder="请输入密码"
            style={{color:'#999999'}}
          >密码</InputItem>
      </div>
    );
  }
}